# -*- coding: utf-8 -*-
# author yzs
# date 2018-12-08
# A+B for Input-Output Practice (II)
# Description
# The first line integer means the number of input integer a and b. Your task is to Calculate a + b.
# Input
# Your task is to Calculate a + b. The first line integer means the numbers of pairs of input integers.
# Output
# For each pair of input integers a and b you should output the sum of a and b in one line, and with one line of output for each line in input.
# Sample Input 1 
# 2
# 1 5
# 10 20
# Sample Output 1
# 6
# 30


num = int(input().strip())
for i in range(num):
    a, b = map(int, input().strip().split())
    print(a + b)